<?php
$menuitem = "Installation";
$pfx = "";
if(isset($_SESSION['mysql_pref'])) {$pfx = $_SESSION['mysql_pref'];}
if ($execute) {
    title("Installation", true);
    @mysql_connect($_SESSION['mysql_host'], $_SESSION['mysql_user'], $_SESSION['mysql_pass']) or die("Verbindung zu MySQL fehlgeschlagen");
    @mysql_select_db($_SESSION['mysql_base']) or die("Verbindung zur Datenbank fehlgeschlagen");

    if (empty($_SESSION['mysql_samp'])) {
        if (!@file_exists(dirname(__FILE__) . "/setup_pur.php")) {
            die("File not found: setup/setup_pur.php");
        }
        include_once(dirname(__FILE__) . "/setup_pur.php");
    } else {
        if (!@file_exists(dirname(__FILE__) . "/setup.php")) {
            die("File not found: setup/setup.php");
        }
        include_once(dirname(__FILE__) . "/setup.php");
    }

    button();
}

?>